import Vue from 'vue'
import App from './App'
import API from './api/index.js'
import store from 'store/index.js'
import Tools from 'common/tools.js'
import * as filters from "common/filters.js";
import uView from "uview-ui";
import tim from "@/common/tim.js";
import share from '@/mixins/share.js'
// #ifdef APP-PLUS
import TrtcCloud from "@/TrtcCloud/lib/index"; // 将 TrtcCloud 引入到代码中
// #endif
// #ifndef MP
// import TRTC from 'trtc-js-sdk';
// #endif
import {
	IMSDKAppID
} from '@/config/index.js';
Vue.prototype.$version = '1.0.1'
Vue.use(uView);
Vue.mixin(share)
// api 接口管理
Vue.prototype.$api = API
// 通用工具
Vue.prototype.$tools = Tools
// vuex 仓库
Vue.prototype.$store = store
Vue.config.productionTip = false
// 全局过滤器
Object.keys(filters).forEach(key => {
	Vue.filter(key, filters[key])
})

Vue.prototype.tim = tim.tim
Vue.prototype.TIM = tim.TIM

// 引用im end
// 引用 实时音视频
// #ifdef APP-PLUS
Vue.prototype.trtcCloud = TrtcCloud
// #endif
// #ifndef MP
// Vue.prototype.TRTC = TRTC
// #endif

App.mpType = 'app'

const app = new Vue({
	...App
})
app.$mount()
